package net.telesing.tcmc.back.service;

import org.nutz.ioc.loader.annotation.IocBean;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.File;
import java.util.Map;

/**
 * api接口
 *
 * Created by Zmt on 2015/12/2.
 */
@IocBean
public interface ApiService
{
    File downloadApk(HttpServletResponse response);

    Map<String, Object> checkUpdate(int code);

    Map<String, Object> getSectionById(long id);

    Map<String, Object> getSectionBySecret(String secret);

    Map<String, Object> getSection(String userName, String pwd);

    Map<String, Object> getCertificate(String userName, String pwd, String sName, int cType, HttpServletRequest httpServletRequest);

    Map<String, Object> getSectionByName(String section);

}
